package com.java2_27;
//饿汉单例
public class Demo1 {
    public Demo1() {}

    private static Demo1 demo1 = new Demo1();

    public static Demo1 getDemo1() {
        return demo1;
    }

}
